package com.base.cn.platform.os.dao.course.cou.packageCou;

import com.base.cn.platform.os.common.mybatis.BaseDao;
import com.base.cn.platform.os.entity.course.cou.Course;
import com.base.cn.platform.os.entity.course.cou.packageCou.PackageCourse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 套餐与课程关联的Dao
 *
 * @author s.li
 * @create 2018-05-02-14:51
 */
@Mapper
public interface PackageCourseDao extends BaseDao<PackageCourse> {

    List<Integer> getCourseService(@Param("clazz") Class<Course> clazz, @Param("ids") String ids);

    Integer getCourseDurationSum(@Param("courseId") BigDecimal courseId);

}
